#pragma once

#include<stdio.h>
#define BUFMAX 1024

typedef struct _MY_FILE
{
  int fd;
  char buffer[BUFMAX];
  size_t count;
}MY_FILE;

MY_FILE* my_fopen(const char*,const char*);

int my_fclose(MY_FILE*);

int my_fflush(MY_FILE*);



size_t my_write(const void*,size_t,size_t count,MY_FILE*);
size_t my_read(void*,size_t,size_t count,MY_FILE*);




